package memnet.graph.builder;

import memnet.graph.Graph;
import memnet.graph.Node;

public interface IGraphBuilder {
	public void init();
	public void addEdge(Object n1, Object n2, Object edge, Object context);
	public Graph getGraph();
	
	
	public final static IGraphBuilder basicGraphBuilder = 
			new IGraphBuilder(){
				Graph g;
				public void init() {
					g = new Graph();
				}
				public void addEdge(Object n1, Object n2, Object edge,
						Object context) {
					
					
					g.setEdge(n1, n2, edge, 1.0);
					
				}
				public Graph getGraph() {
					return g;
				}
		
	};
}
